/************tips****************
*device(vue-admin) vs screen(guns) 同是判断屏幕尺寸的变量
*
*/


const getters = {
	  website: state => state.common.website,
    imgPreviewPrefix: state => state.common.imgPreviewPrefix,
  	mainContentHeight: state => state.common.mainContentHeight,
    sidebar: state => state.app.sidebar,
  	device: state => state.app.device,
  	token: state => state.user.token,
  	avatar: state => state.user.avatar,
  	name: state => state.user.name,
  	roles: state => state.user.roles,
  	menu: state => state.user.menu,
  	userInfo: state => state.user.userInfo,
  	permission: state => state.user.permission,
  	isCollapse: state => state.common.isCollapse,
  	keyCollapse: (state, getters) => getters.screen > 1 ? getters.isCollapse : false,
  	screen: state => state.common.screen,
  	detailLevel: state => state.articleContent.detailLevel,
}
export default getters
